package dome5;

class B {
    public B() {
        func();
    }
    public void func() {
        System.out.println("B.func()~");
    }
}

class D extends B {
    private int num1 = 1;
    final int num2 = 2;
    @Override
    public void func() {
        System.out.println("D.func()~" + num1 + " " +  num2);
    }
}
public class Text {
    public static void main(String[] args) {
        new D();
    }
}
